<%@ page import="history.Account" %>
<!doctype html>
<html>
	<head>
                <meta name="layout" content="backend">
		<g:set var="entityName" value="${message(code: 'account.label', default: 'Account')}" />
		<title>登入</title>
	</head>
	<body>
		<div id="create-account" class="content scaffold-create" role="main">
			<h1>登入</h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
                        <g:hasErrors bean="${cmd}">
			<ul class="errors" role="alert">
                            <g:eachError bean="${cmd}" var="error">
				<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
				</g:eachError>
			</ul>
			</g:hasErrors>
                        <g:form action="loginCheck" >
				<fieldset class="form">
                                    <div class="fieldcontain ${hasErrors(bean: cmd, field: 'login', 'error')} required">
                                        <label for="login">
                                            <g:message code="account.login.label" default="Login" />
                                            <span class="required-indicator">*</span>
                                        </label>
                                            <g:textField name="login" required="" value="${cmd?.login}"/>
                                    </div>
                                            <div class="fieldcontain ${hasErrors(bean: cmd, field: 'pw', 'error')} required">
                                        <label for="pw">
                                            <g:message code="account.pw.label" default="Pw" />
                                            <span class="required-indicator">*</span>
                                        </label>
                                            <g:textField name="pw" required="" value="${cmd?.pw}"/>
                                            <g:submitButton name="create" class="btn-default" value="登入" />
                                    </div>
                                </fieldset>
			</g:form>
		</div>
	</body>
</html>
